// import { request } from "../../http/index.js";

import request from '@/sheep/request';

let baseUrl = 'https://llshop.zglvling.com/soapi/';
// let baseUrl = "https://test.zglvling.com/soapi/";
// const praiseTextApi = (params) =>
//   request.post(baseUrl + "ai/praiseTexttwo", params);

const praiseTextApi = (params) => {
  console.log('params: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', params);

  return request.post('https://ark.cn-beijing.volces.com/api/v3/chat/completions', params);
};

const userFaceInoApi = (params) => request.post(baseUrl + 'userinfo/get_user_face_info', params);
const hairstyleListApi = (params) =>
  request.post('https://puton.meidaojia.com/api/v1/test/getHairDetails', params);
const exchangeHairApi = (params) =>
  request.post('https://puton.meidaojia.com/api/v1/test/exchangeHair', params);

// const exchangeHairHistoryByTaskId = (params) =>
//   request.post('https://puton.meidaojia.com/api/v1/test/exchangeHairHistoryByTaskId', params);
const exchangeHairHistoryByTaskId = (data) =>
  request({
    url: 'https://puton.meidaojia.com/api/v1/test/exchangeHairHistoryByTaskId',
    method: 'post',
    data,
    custom: {
      showLoading: false
    },
  });

const wardrobeListApi = (params) => request.post(baseUrl + 'wardrobe/clothes_list', params);

const getStyleApi = (params) => request.post(baseUrl + 'userinfo/get_user_face_info', params);

const hairStyleListApi = (params) =>
  request.post('https://puton.meidaojia.com/api/v1/test/getHairDetails', params);

const addHairApi = (params) => request.post(baseUrl + 'userinfo/add_hair_data', params);

const getHairApi = (params) => request.post(baseUrl + 'userinfo/get_hair_data', params);

export {
  praiseTextApi,
  userFaceInoApi,
  hairstyleListApi,
  exchangeHairApi,
  exchangeHairHistoryByTaskId,
  wardrobeListApi,
  getStyleApi,
  // goWXtApi,
  // clothesListApi,
  hairStyleListApi,
  addHairApi,
  getHairApi,
};
